<template>
	<div>
		<!-- 内容区瀑布流开始 -->
		<div id="main">
			<div class="main clearfix">
				<div class="box">
					<div class="boxkuai">
						<a href="#">
							<img src="../assets/img/THUMBNAIL787F46C0DB06408F.jpg">
							<p class="title">2022外贸企业邮箱查询地址如何查，企业邮箱如何注册申...</p>
						</a>
						<p class="article">
							进入职场后，都需要使用公司开通好的企业邮箱办公，那你知道企业邮箱是如何注册申请的吗？小编将自身开通TOM邮箱的经...
						</p>
						<p class="source">
							<img src="https://www.tom.com/system/modules/my.opencms.news/resources/pc/pic/from_logo/tom.png">
							<a href="#">TOM</a>
							<span class="news fr">新闻</span>
						</p>
					</div>
				</div>
			</div>
		</div>
		<p v-for="(item,index) of pageArr" :key="item">
			{{item[1]}}
		</p>
		<!-- 内容瀑布流结束 -->
	</div>
</template>

<script>
	export default {
		name: "shouyepage",
		data() {
			return {
				pageArr: [],
			};
		},
		props: {

		},
		created() {
			this.getshouyePage();
		},
		methods: {
			getshouyePage() {
				fetch("https://www.tom.com/json/show1022.json?s=1638272890411")
					.then(res => res.json())
					.then(res => {
						console.log("首页数据", res);
						this.pageArr = res;
					})
					.catch(err => console.log(err))
			},

		},

	};
</script>

<style scoped="scoped">
	/* 双行导航结束 */
	#main {
		min-width: 640.5px;
		position: relative;
		top: 80px;
		width: 100%;
		margin: 40px auto 0;
		font-family: "微软雅黑", helvetica, arial;
	}

	#main .main {
		width: 1200px;
		margin: 80px auto;
		position: relative;
		left: 0px;
		top: 0px;
	}

	#main .main .box {
		width: 290px;
		float: left;
		background-color: transparent;
		margin-bottom: 10px;
		padding-bottom: 3px;
		padding-right: 0;
		text-align: center;
	}

	#main .main .box .boxkuai {
		background-color: white;
		padding-bottom: 31px;
		padding-right: 9px;
		margin-right: 7px;
		margin-left: 7px;
	}

	#main .main .box .boxkuai a {
		text-decoration: none;
		cursor: pointer;
	}

	#main .main .box .boxkuai img {
		display: inline-block;
		width: 276px;
	}

	#main .main .box .boxkuai .title {
		font-weight: bold;
		font-size: 16px;
		letter-spacing: 2px;
		line-height: 20px;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
		text-align: left;
		color: #222222;
	}

	#main .main .box .boxkuai .article {
		text-align: left;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 4;
		overflow: hidden;
		font-size: 14px;
		color: #333333;
	}

	#main .main .box .boxkuai {
		letter-spacing: 1px;
		line-height: 20px;
	}

	#main .main .box .boxkuai:hover {
		margin-right: 6px !important;
		margin-left: 4px !important;
		border: 2px solid #6eba2c;
		padding-bottom: 27px !important;
		box-shadow: darkgrey 0 0 5px 2px;
	}

	#main .main .box .boxkuai .source {
		margin-bottom: 15px;
		margin-top: 10px;
	}

	#main .main .box .boxkuai .source>img {
		float: left;
		height: 12px !important;
		width: 12px !important;
		display: block;
	}

	#main .main .box .boxkuai .source>a {
		float: left;
		line-height: 12px;
		font-size: 12px;
		color: #787878 !improtant;
		margin-left: 6px;
	}

	#main .main .box .boxkuai .source .news {
		display: inline-block;
		margin-top: -3px;
		margin-right: 8px;
		float: right;
		border-radius: 2px;
		color: #288055;
		border: solid 1px #288055;
		font-size: 10px;
		font-weight: normal;
		text-align: center;
		padding: 1.5px 1px;
	}
</style>
